<template>
  <div>
    <PageHeader :lang="lang"></PageHeader>
      <!--登录页面-->
 <div style="width:1200px; margin:0 auto"  id="pageBody" v-html ="coinIntroduce">

</div>
  <PageFooter2 :lang="lang" :langKey="langKey"></PageFooter2>
  </div>
</template>
<script>
import commonMixins from '@/mixins/common.js'
export default {
  mixins: [commonMixins],
  data () {
    return {
      coinIntroduce: '',
      coinIntroduceUrl: ''
    }
  },
  components: {

  },
  watch: {
    langKey () {
      this.langKeyIs()
    }
  },
  methods: {
    initCountryList () {
      this.$http.get('/static/articles/CoinIntroduce_' + this.coinIntroduceUrl + '.txt', {}, {
        isCustomUrl: true
      }).then((res) => {
        this.coinIntroduce = res
      })
    },
    langKeyIs () {
      if (this.langKey === 'zh-CN' || this.langKey === 'zh-Hant' || this.langKey === 'vi') {
        this.coinIntroduceUrl = this.langKey
      } else {
        this.coinIntroduceUrl = 'en'
      }
      this.initCountryList()
    }
  },
  mounted () {
    this.langKeyIs()
  }
}
</script>


